package com.example.proyyj.Service;

import com.example.proyyj.Entity.Calligraphy;
import com.example.proyyj.Impl.CalligraphyImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CalligraphyService implements CalligraphyImpl{
    @Resource
    CalligraphyImpl calligraphy;


    @Override
    public Calligraphy getCalligraphyById(int id) {
        return calligraphy.getCalligraphyById(id);
    }

    @Override
    public List<Calligraphy> getCalligraphyList() {
        return calligraphy.getCalligraphyList();
    }
}
